<?php

namespace common\models\pdd;

use common\models\base\ActiveRecord;
use Yii;

/**
 * This is the model class for table "tb_keywords".
 *
 * @property int $id
 * @property int $uid 会员id
 * @property int $mall_id 店铺id
 * @property string $keywords 会员关键词库管理，json存储
 */
class PddKeywords extends ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'pdd_keywords';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['uid', 'mall_id', 'keywords'], 'required'],
            [['uid', 'mall_id'], 'integer'],
            [['keywords'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'uid' => '会员id',
            'mall_id' => '店铺id',
            'keywords' => '会员关键词库管理，json存储',
        ];
    }
}
